﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class CategoryMaster : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        GridView1.DataSource = GetTable();
        GridView1.DataBind();
        
    }

    private DataTable GetTable()
    {

        DataTable dtbl1 = new DataTable();

        dtbl1.Columns.Add("Category Type Code", typeof(string));
        dtbl1.Columns.Add("Category Type Name", typeof(string));
        dtbl1.Columns.Add("Discount Type", typeof(string));
        dtbl1.Columns.Add("Amount", typeof(string));



        dtbl1.Rows.Add("CT35698","Name1","Type1", "200");
        dtbl1.Rows.Add("CT69834", "Name2", "Type2", "100");
        dtbl1.Rows.Add("CT82419", "Name3", "Type3", "100");

        return dtbl1;
    }

}
